//封装detail相关的接口函数

import request from '@/utils/request'

export const getDetailService = (id) => {
    return request({
        url: '/user/goods',
        method: 'GET',
        params: {
            id
        }
    })
}

export const getHotGoodsService = ( {id,parentId,limit = 10} ) => {
    return request({
      url:'/user/goods/hot',
      method: 'GET',
      params:{
        id,
        parentId,
        limit
      }
    })
  }